var random_verify_module = function(){
  return{
    random_verify: function(){
      rand_no = Math.random();
      rand_no = rand_no * 100000;
      verify_text = Math.ceil(rand_no);
      prompt_window = 
        dhtmlmodal.open('RandomVerifyBox',
        'iframe', 'randomVerify/random_form.htm',
        'Random Verify', 'width=350px,height=200px,center=1,resize=0,scrolling=1')
      Ext.Msg.prompt('Verify#: '+verify_text,prompt,
        function(btn,text){
          if(btn=='ok'){
            if(text != verify_text){
              Ext.Msg.alert('Verify Error','Verification error');
              return false;
            }
            c = new Ext.data.Connection();
            c.request(url);
          }
        }
      );
    }
  }

}();